package org.com.cis.cf;

import java.text.NumberFormat;

public class RandMF extends MF{
	public void runModel()
	{
		
			double testNdcg1 = calcNdcg(testSet, 1, true);
			double testNdcg2 = calcNdcg(testSet, 2, true);
			double testNdcg3 = calcNdcg(testSet, 3, true);
			double testNdcg4 = calcNdcg(testSet, 4, true);
			double testNdcg5 = calcNdcg(testSet, 5, true);
			double testNdcg10 = calcNdcg(testSet, 10, true);
			NumberFormat nFormat=NumberFormat.getNumberInstance(); 
		    nFormat.setMaximumFractionDigits(4);
		    
		    System.out.print("\t" + nFormat.format(testNdcg1) + "  " + 
		    		nFormat.format(testNdcg2) + "  " + 
		    		nFormat.format(testNdcg3) + "  " + 
		    		nFormat.format(testNdcg4) + "  " + 
		    		nFormat.format(testNdcg5) + "  " + 
		    		nFormat.format(testNdcg10));
		    
		    System.out.println();

	}
}
